import instance from '@/utils/request'

// 获取角色分页数据
export const rolePage = (pageData) => instance.post('roles/page', pageData)
// 新增角色
export const addRole = (form) => instance.post('roles/add', form)

//根据id获取角色信息
export const getOneRole = (id) => instance.get("/roles/one/" + id)

// 编辑
export const editRole = (form) => instance.post("/roles/edit", form)

//根据id删除角色信息
export const deleteRole = (id) => instance.get("/roles/delete/" + id)


// 角色列表
export const role_list = () => instance.get('roles/list')

